package com.qf.agro.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.agro.pojo.SysModule;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ProjectName: smart-agriculture-parent
 * ClassName: SysModule
 * Author: chenyaosen
 * Date: 2023/7/3 21:49
 * Description:
 */
@Repository
public interface SysModuleMapper extends BaseMapper<SysModule> {

    List<Long> selectRoleModule(Long roleId);

    void deleteRoleModule(Long roleId);

    void insertRoleModule(@Param("roleId") Long roleId, @Param("moduleIds") List<Long> moduleIds);
}
